package com.service.system.user.impl;

import com.dao.UserInfoMapper;
import com.entity.system.UserInfo;
import com.service.system.user.UserAdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Service
public class UserAdminServiceImpl implements UserAdminService {

    @Resource
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo selectUserByUserId(Long userId) {
        Map<String, Object> map = new HashMap<>();
        map.put("id", userId);
        UserInfo userInfo = userInfoMapper.selectUser(map);
        return userInfo;
    }
}
